home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set spriteNumber to the clickOn
- puppetSprite(spriteNumber, 1)
- set normal to the name of cast the mouseCast
- set pressed to the name of cast the mouseCast
- put "•" into char 1 of pressed
- if pressed = "•" then
- puppetSprite(spriteNumber, 1)
- exit
- end if
- repeat while the mouseDown
- set the castNum of sprite spriteNumber to cast pressed
- if not rollOver(spriteNumber) then
- set the castNum of sprite spriteNumber to cast normal
- updateStage()
- puppetSprite(spriteNumber, 0)
- exit
- end if
- updateStage()
- end repeat
- set the castNum of sprite spriteNumber to cast normal
- puppetSprite(spriteNumber, 0)
- updateStage()
- puppetSprite(40, 1)
- set the castNum of sprite 40 to cast "*BoutonON"
- puppetSprite(40, 0)
- updateStage()
- midiplay("stop")
- go("main")
- end
-